<!-- XHTML 1.0 Strict -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<meta name="author" content="Rachid Touzani" />
<meta name="keywords" content=" css, dropdowns, dropdown menu, drop-down, menu, navigation, nav, horizontal, vertical left-to-right, vertical right-to-left, horizontal linear, horizontal upwards, cross browser, internet explorer, ie, firefox, safari, opera, browser, lwis" />
<meta name="description" content="Clean, standards-friendly, modular framework for dropdown menus" />
<link href="../css/dropdown.vertical.css" media="screen" rel="stylesheet" type="text/css" />
<link href="../css/default.ultimate.css" media="screen" rel="stylesheet" type="text/css" />
<head>
<!-- Title -->
<title>OFELI - Documentation</title>
<!-- Stylesheet -->
<link rel="stylesheet" type="text/css" href="../doxygen.css" />
<link rel="stylesheet" type="text/css" href="../tabs.css" />
</head>
<body>
<p align="center">
  <img src="../im/ofeli.gif" alt="OFELI's Logo" width="300" height="90">
</p>
<p align="center"><font color="#203F5B" size="4" face="verdana,Helvetica">
<b>An Object Oriented Finite Element Library</b></font></p>
<!-- Complete Page-->
<div id="main">
<div id="mainmenu">
 <div class="text">
<!-- Menu -->
 <div class="tabs">
  <ul class="tablist">
   <li><a href="../index.html"><span>Home</span></a>
    <li><a href="../overview.html"><span>Overview</span></a>
    <li><a href="../extlib.html"><span>External Libraries</span></a>
    <li><a href="../citing.html"><span>Citing OFELI</span></a>
    <li><a href="../fformats.html"><span>File Formats</span></a>
    <li><a href="../demos.html"><span>Demo Codes</span></a>
  </ul>
 </div>
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classOFELI_1_1AbsEqua.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classOFELI_1_1AbsEqua-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">AbsEqua&lt; T_ &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__OFELI.html">OFELI</a><a class="el" href="group__OFELI.html">OFELI</a> &raquo;  &#124; <a class="el" href="group__Equation.html">General Purpose Equations</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Mother abstract class to describe equation.  
 <a href="classOFELI_1_1AbsEqua.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for AbsEqua&lt; T_ &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="classOFELI_1_1AbsEqua.png" usemap="#AbsEqua_3C_20T_5F_20_3E_map" alt=""/>
  <map id="AbsEqua_3C_20T_5F_20_3E_map" name="AbsEqua&lt; T_ &gt;_map">
<area href="classOFELI_1_1Equation.html" title="Abstract class for all equation classes. " alt="Equation&lt; T_, NEN_, NEE_, NSN_, NSE_ &gt;" shape="rect" coords="892,56,1239,80"/>
<area href="classOFELI_1_1Equa__Electromagnetics.html" title="Abstract class for Electromagnetics Equation classes. " alt="Equa_Electromagnetics&lt; T_, NEN_, NEE_, NSN_, NSE_ &gt;" shape="rect" coords="0,112,347,136"/>
<area href="classOFELI_1_1Equa__Fluid.html" title="Abstract class for Fluid Dynamics Equation classes. " alt="Equa_Fluid&lt; T_, NEN_, NEE_, NSN_, NSE_ &gt;" shape="rect" coords="357,112,704,136"/>
<area href="classOFELI_1_1Equa__Laplace.html" title="Abstract class for classes about the Laplace equation. " alt="Equa_Laplace&lt; T_, NEN_, NEE_, NSN_, NSE_ &gt;" shape="rect" coords="714,112,1061,136"/>
<area href="classOFELI_1_1Equa__Porous.html" title="Abstract class for Porous Media Finite Element classes. " alt="Equa_Porous&lt; T_, NEN_, NEE_, NSN_, NSE_ &gt;" shape="rect" coords="1071,112,1418,136"/>
<area href="classOFELI_1_1Equa__Solid.html" title="Abstract class for Solid Mechanics Finite Element classes. " alt="Equa_Solid&lt; T_, NEN_, NEE_, NSN_, NSE_ &gt;" shape="rect" coords="1428,112,1775,136"/>
<area href="classOFELI_1_1Equa__Therm.html" title="Abstract class for Heat transfer Finite Element classes. " alt="Equa_Therm&lt; T_, NEN_, NEE_, NSN_, NSE_ &gt;" shape="rect" coords="1785,112,2132,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a293ad653cb11c77124cb5667d679b025"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a293ad653cb11c77124cb5667d679b025"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a293ad653cb11c77124cb5667d679b025">AbsEqua</a> ()</td></tr>
<tr class="memdesc:a293ad653cb11c77124cb5667d679b025"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:a293ad653cb11c77124cb5667d679b025"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9aa2e8f88f1f20fc4665a867cd457fad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9aa2e8f88f1f20fc4665a867cd457fad"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a9aa2e8f88f1f20fc4665a867cd457fad">~AbsEqua</a> ()</td></tr>
<tr class="memdesc:a9aa2e8f88f1f20fc4665a867cd457fad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a9aa2e8f88f1f20fc4665a867cd457fad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82708ffcc31d4d630863187f3f137ee3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a82708ffcc31d4d630863187f3f137ee3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a82708ffcc31d4d630863187f3f137ee3">setMesh</a> (<a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;m)</td></tr>
<tr class="memdesc:a82708ffcc31d4d630863187f3f137ee3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define mesh and renumber DOFs after removing imposed ones. <br /></td></tr>
<tr class="separator:a82708ffcc31d4d630863187f3f137ee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a913c6c03741d94f86d65690fd7d5902a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a913c6c03741d94f86d65690fd7d5902a">getMesh</a> () const </td></tr>
<tr class="memdesc:a913c6c03741d94f86d65690fd7d5902a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return reference to <a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance.  <a href="#a913c6c03741d94f86d65690fd7d5902a">More...</a><br /></td></tr>
<tr class="separator:a913c6c03741d94f86d65690fd7d5902a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2907b96cfd97e563fe4afcae104897e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2907b96cfd97e563fe4afcae104897e7"></a>
<a class="el" href="classOFELI_1_1LinearSolver.html">LinearSolver</a>&lt; T_ &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a2907b96cfd97e563fe4afcae104897e7">getLinearSolver</a> ()</td></tr>
<tr class="memdesc:a2907b96cfd97e563fe4afcae104897e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return reference to linear solver instance. <br /></td></tr>
<tr class="separator:a2907b96cfd97e563fe4afcae104897e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0af9c590a2bbfa944af9dece2a8e3dec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0af9c590a2bbfa944af9dece2a8e3dec"></a>
<a class="el" href="classOFELI_1_1PETScMatrix.html">PETScMatrix</a>&lt; T_ &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a0af9c590a2bbfa944af9dece2a8e3dec">getMatrix</a> () const </td></tr>
<tr class="memdesc:a0af9c590a2bbfa944af9dece2a8e3dec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return pointer to matrix. <br /></td></tr>
<tr class="separator:a0af9c590a2bbfa944af9dece2a8e3dec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa76ba7a5ad0412484df8aeaa34df03a3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#aa76ba7a5ad0412484df8aeaa34df03a3">setSolver</a> (<a class="el" href="group__OFELI.html#gad0624a8576d3ca1d4af97479546930ea">Iteration</a> ls, <a class="el" href="group__OFELI.html#gadac1c2aa74e98e485c02f73279b71a38">Preconditioner</a> pc=<a class="el" href="group__OFELI.html#ggadac1c2aa74e98e485c02f73279b71a38abee1df09df17f316a75a98ad36679bf6">IDENT_PREC</a>)</td></tr>
<tr class="memdesc:aa76ba7a5ad0412484df8aeaa34df03a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Choose solver for the linear system.  <a href="#aa76ba7a5ad0412484df8aeaa34df03a3">More...</a><br /></td></tr>
<tr class="separator:aa76ba7a5ad0412484df8aeaa34df03a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93bf9d28a75fab8e6f5a3c3d1e6bd415"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a93bf9d28a75fab8e6f5a3c3d1e6bd415">setLinearSolver</a> (<a class="el" href="group__OFELI.html#gad0624a8576d3ca1d4af97479546930ea">Iteration</a> ls, <a class="el" href="group__OFELI.html#gadac1c2aa74e98e485c02f73279b71a38">Preconditioner</a> pc=<a class="el" href="group__OFELI.html#ggadac1c2aa74e98e485c02f73279b71a38abee1df09df17f316a75a98ad36679bf6">IDENT_PREC</a>)</td></tr>
<tr class="memdesc:a93bf9d28a75fab8e6f5a3c3d1e6bd415"><td class="mdescLeft">&#160;</td><td class="mdescRight">Choose solver for the linear system.  <a href="#a93bf9d28a75fab8e6f5a3c3d1e6bd415">More...</a><br /></td></tr>
<tr class="separator:a93bf9d28a75fab8e6f5a3c3d1e6bd415"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28dc6e37b3582dfaf59b23135fb06682"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a28dc6e37b3582dfaf59b23135fb06682">setMatrixType</a> (int t)</td></tr>
<tr class="memdesc:a28dc6e37b3582dfaf59b23135fb06682"><td class="mdescLeft">&#160;</td><td class="mdescRight">Choose type of matrix.  <a href="#a28dc6e37b3582dfaf59b23135fb06682">More...</a><br /></td></tr>
<tr class="separator:a28dc6e37b3582dfaf59b23135fb06682"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05a11942d676096bf343f9f734030d7f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a05a11942d676096bf343f9f734030d7f">solveLinearSystem</a> (<a class="el" href="classOFELI_1_1PETScMatrix.html">PETScMatrix</a>&lt; T_ &gt; *<a class="el" href="group__OFELI.html#ga8d83ae0344b0fbb3265762cd97e1b1db">A</a>, <a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;<a class="el" href="group__OFELI.html#gaf5cd2eaaceda19772fd904539819158c">b</a>, <a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;x)</td></tr>
<tr class="memdesc:a05a11942d676096bf343f9f734030d7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solve the linear system with given matrix and right-hand side.  <a href="#a05a11942d676096bf343f9f734030d7f">More...</a><br /></td></tr>
<tr class="separator:a05a11942d676096bf343f9f734030d7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d3039f33683a4c022db6868f668d889"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1AbsEqua.html#a8d3039f33683a4c022db6868f668d889">solveLinearSystem</a> (<a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;<a class="el" href="group__OFELI.html#gaf5cd2eaaceda19772fd904539819158c">b</a>, <a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;x)</td></tr>
<tr class="memdesc:a8d3039f33683a4c022db6868f668d889"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solve the linear system with given right-hand side.  <a href="#a8d3039f33683a4c022db6868f668d889">More...</a><br /></td></tr>
<tr class="separator:a8d3039f33683a4c022db6868f668d889"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T_&gt;<br />
class OFELI::AbsEqua&lt; T_ &gt;</h3>

<p>Mother abstract class to describe equation. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">&lt;T_&gt;</td><td>Data type (real_t, float, complex&lt;real_t&gt;, ...)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Rachid Touzani </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>GNU Lesser Public License </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a913c6c03741d94f86d65690fd7d5902a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOFELI_1_1Mesh.html">Mesh</a>&amp; getMesh </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return reference to <a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance. </p>
<dl class="section return"><dt>Returns</dt><dd>Reference to <a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance </dd></dl>

</div>
</div>
<a class="anchor" id="aa76ba7a5ad0412484df8aeaa34df03a3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setSolver </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__OFELI.html#gad0624a8576d3ca1d4af97479546930ea">Iteration</a>&#160;</td>
          <td class="paramname"><em>ls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__OFELI.html#gadac1c2aa74e98e485c02f73279b71a38">Preconditioner</a>&#160;</td>
          <td class="paramname"><em>pc</em> = <code><a class="el" href="group__OFELI.html#ggadac1c2aa74e98e485c02f73279b71a38abee1df09df17f316a75a98ad36679bf6">IDENT_PREC</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Choose solver for the linear system. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ls</td><td>Solver of the linear system. To choose among the enumerated values: <code>DIRECT_SOLVER</code>, <code>CG_SOLVER</code>, <code>GMRES_SOLVER</code> <ul>
<li>
<code>DIRECT_SOLVER</code>, Use a facorization solver [default] </li>
<li>
<code>CG_SOLVER</code>, Conjugate Gradient iterative solver </li>
<li>
<code>CGS_SOLVER</code>, Squared Conjugate Gradient iterative solver </li>
<li>
<code>BICG_SOLVER</code>, BiConjugate Gradient iterative solver </li>
<li>
<code>BICG_STAB_SOLVER</code>, BiConjugate Gradient Stabilized iterative solver </li>
<li>
<code>GMRES_SOLVER</code>, GMRES iterative solver </li>
<li>
<code>QMR_SOLVER</code>, QMR iterative solver </li>
</ul>
</td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pc</td><td>Preconditioner to associate to the iterative solver. If the direct solver was chosen for the first argument this argument is not used. Otherwise choose among the enumerated values: <ul>
<li>
<code>IDENT_PREC</code>, Identity preconditioner (no preconditioning [default]) </li>
<li>
<code>DIAG_PREC</code>, Diagonal preconditioner </li>
<li>
<code>ILU_PREC</code>, Incomplete LU factorization preconditioner </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a93bf9d28a75fab8e6f5a3c3d1e6bd415"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setLinearSolver </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__OFELI.html#gad0624a8576d3ca1d4af97479546930ea">Iteration</a>&#160;</td>
          <td class="paramname"><em>ls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__OFELI.html#gadac1c2aa74e98e485c02f73279b71a38">Preconditioner</a>&#160;</td>
          <td class="paramname"><em>pc</em> = <code><a class="el" href="group__OFELI.html#ggadac1c2aa74e98e485c02f73279b71a38abee1df09df17f316a75a98ad36679bf6">IDENT_PREC</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Choose solver for the linear system. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ls</td><td>Solver of the linear system. To choose among the enumerated values: <code>DIRECT_SOLVER</code>, <code>CG_SOLVER</code>, <code>GMRES_SOLVER</code> <ul>
<li>
<code>DIRECT_SOLVER</code>, Use a facorization solver [default] </li>
<li>
<code>CG_SOLVER</code>, Conjugate Gradient iterative solver </li>
<li>
<code>CGS_SOLVER</code>, Squared Conjugate Gradient iterative solver </li>
<li>
<code>BICG_SOLVER</code>, BiConjugate Gradient iterative solver </li>
<li>
<code>BICG_STAB_SOLVER</code>, BiConjugate Gradient Stabilized iterative solver </li>
<li>
<code>GMRES_SOLVER</code>, GMRES iterative solver </li>
<li>
<code>QMR_SOLVER</code>, QMR iterative solver </li>
</ul>
</td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pc</td><td>Preconditioner to associate to the iterative solver. If the direct solver was chosen for the first argument this argument is not used. Otherwise choose among the enumerated values: <ul>
<li>
<code>IDENT_PREC</code>, Identity preconditioner (no preconditioning [default]) </li>
<li>
<code>DIAG_PREC</code>, Diagonal preconditioner </li>
<li>
<code>ILU_PREC</code>, Incomplete LU factorization preconditioner </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a28dc6e37b3582dfaf59b23135fb06682"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setMatrixType </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Choose type of matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>Type of the used matrix. To choose among the enumerated values: <code>SKYLINE</code>, <code>SPARSE</code>, <code>DIAGONAL</code> <code>TRIDIAGONAL</code>, <code>SYMMETRIC</code>, <code>UNSYMMETRIC</code>, <code>IDENTITY</code> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a05a11942d676096bf343f9f734030d7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int solveLinearSystem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOFELI_1_1PETScMatrix.html">PETScMatrix</a>&lt; T_ &gt; *&#160;</td>
          <td class="paramname"><em>A</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Solve the linear system with given matrix and right-hand side. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">A</td><td>Pointer to matrix of the system </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>Vector containing right-hand side </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">x</td><td>Vector containing initial guess of solution on input, actual solution on output </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8d3039f33683a4c022db6868f668d889"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int solveLinearSystem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classOFELI_1_1PETScVect.html">PETScVect</a>&lt; T_ &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Solve the linear system with given right-hand side. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>Vector containing right-hand side </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">x</td><td>Vector containing initial guess of solution on input, actual solution on output </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->

</div> <!-- class text -->
</div> <!-- main menu -->
<!-- Google Search -->
<br><br>
<center>
  <div id="cse" style="width: 80%;">Loading</div>
  <script src="http://www.google.com/jsapi" type="text/javascript"></script>
  <script type="text/javascript"> 
     google.load('search', '1', {language : 'en', style : google.loader.themes.SHINY});
     google.setOnLoadCallback(function() {
        var customSearchOptions = {};  var customSearchControl = new google.search.CustomSearchControl(
        '012396140824982761142:-qrywxcfi_o', customSearchOptions);
        customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
        customSearchControl.draw('cse');
     }, true);
   </script>
   <style type="text/css">
     .gsc-control-cse {
     font-family: Verdana, sans-serif;
     border-color: #DAE0E5;
     background-color: #DAE0E5;
   }
   .gsc-control-cse .gsc-table-result { font-family: Verdana, sans-serif; }
   input.gsc-input { border-color: #B6BEC5; }
   input.gsc-search-button {
     border-color: #B6BEC5;
     background-color: #D0D1D4;
   }
   .gsc-tabHeader.gsc-tabhInactive {
     border-color: #999999;
     background-color: #EEEEEE;
   }
   .gsc-tabHeader.gsc-tabhActive {
     border-color: #999999;
     background-color: #999999;
   }
   .gsc-tabsArea { border-color: #999999; }
   .gsc-webResult.gsc-result,
   .gsc-results .gsc-imageResult {
     border-color: #FFFFFF;
     background-color: #FFFFFF;
   }
   .gsc-webResult.gsc-result:hover,
   .gsc-imageResult:hover {
     border-color: #D2D6DC;
     background-color: #EDEDED;
   }
   .gsc-webResult.gsc-result.gsc-promotion:hover {
     border-color: #D2D6DC;
     background-color: #EDEDED;
   }
   .gs-webResult.gs-result a.gs-title:link,
   .gs-webResult.gs-result a.gs-title:link b,
   .gs-imageResult a.gs-title:link,
   .gs-imageResult a.gs-title:link b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:visited,
   .gs-webResult.gs-result a.gs-title:visited b,
   .gs-imageResult a.gs-title:visited,
   .gs-imageResult a.gs-title:visited b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:hover,
   .gs-webResult.gs-result a.gs-title:hover b,
   .gs-imageResult a.gs-title:hover,
   .gs-imageResult a.gs-title:hover b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:active,
   .gs-webResult.gs-result a.gs-title:active b,
   .gs-imageResult a.gs-title:active,
   .gs-imageResult a.gs-title:active b { color: #0568CD; }
   .gsc-cursor-page { color: #0568CD; }
   a.gsc-trailing-more-results:link { color: #0568CD; }
   .gs-webResult .gs-snippet,
   .gs-imageResult .gs-snippet,
   .gs-fileFormatType { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl,
   .gs-imageResult div.gs-visibleUrl { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl-short { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl-short { display: none; }
   .gs-webResult div.gs-visibleUrl-long { display: block; }
   .gs-promotion div.gs-visibleUrl-short { display: none; }
   .gs-promotion div.gs-visibleUrl-long { display: block; }
   .gsc-cursor-box { border-color: #FFFFFF; }
   .gsc-results .gsc-cursor-box .gsc-cursor-page {
      border-color: #999999;
      background-color: #FFFFFF;
      color: #0568CD;
   }
   .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
      border-color: #999999;
      background-color: #999999;
      color: #0568CD;
   }
   .gsc-webResult.gsc-result.gsc-promotion {
      border-color: #D2D6DC;
      background-color: #D0D1D4;
   }
   .gsc-completion-title { color: #0568CD; }
   .gsc-completion-snippet { color: #5F6A73; }
   .gs-promotion a.gs-title:link,
   .gs-promotion a.gs-title:link *,
   .gs-promotion .gs-snippet a:link { color: #0066CC; }
   .gs-promotion a.gs-title:visited,
   .gs-promotion a.gs-title:visited *,
   .gs-promotion .gs-snippet a:visited { color: #0066CC; }
   .gs-promotion a.gs-title:hover,
   .gs-promotion a.gs-title:hover *,
   .gs-promotion .gs-snippet a:hover { color: #0066CC; }
   .gs-promotion a.gs-title:active,
   .gs-promotion a.gs-title:active *,
   .gs-promotion .gs-snippet a:active { color: #0066CC; }
   .gs-promotion .gs-snippet,
   .gs-promotion .gs-title .gs-promotion-title-right,
   .gs-promotion .gs-title .gs-promotion-title-right *  { color: #333333; }
   .gs-promotion .gs-visibleUrl,
   .gs-promotion .gs-visibleUrl-short { color: #5F6A73; }
   </style>
</center>
<!-- End of Google Search Box -->
<br><br><br></p>
<div id="foot_bar">
  Copyright &copy; 1998-2019 Rachid Touzani&nbsp;
</div>
</div> <!-- main -->
</body>
</HTML>
